import http from "../http"
/* 获取顶部导航栏的分类数据 */
export async function getCategoryData(id) {
    let {
        data
    } = await http({
        url: `category?id=${id}`
    })
    return data
}



// 444
/* 获取二级分类下的商规格品 */
export async function getCategorySubData(id) {
    let {
        data
    } = await http({
        url: `/category/sub/filter?id=${id}`
    })
    return data
}
/* 获取二级分类下的商品列表 */
export async function getCategorySubGoodsData(params) {
    let {
        data
    } = await http({
        url: "category/goods/temporary",
        method: "POST",
        ...params
    })
    return data
}